package apIExercise.exception;

public class TryCatch {
    public static void main(String[] args) {
        System.out.println("程序开始");
        String a="";
        try {
            System.out.println(a.charAt(0));
        } catch (IndexOutOfBoundsException e) {
          //  e.printStackTrace();
            System.out.println("出现下标越界已解决");
        }
        System.out.println("程序结束");
    }
}
